package org.xinjiang.tarim.travel.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.xinjiang.tarim.travel.model.Route;
import org.xinjiang.tarim.travel.model.RouteWithBLOBs;
import org.xinjiang.tarim.travel.vo.Criteria;

import java.util.List;

@Mapper
@Component("RouteMapper")
public interface RouteMapper {
    int insert(RouteWithBLOBs record);

    RouteWithBLOBs selectByPrimaryKey(Long id);

    Long selectByOpenidCount(Criteria criteria);

    List<RouteWithBLOBs> selectByOpenid(Criteria criteria);

    int updateCoverImage(RouteWithBLOBs route);

    int updateByPrimaryKeySelective(RouteWithBLOBs route);

    int deleteByPrimaryKey(Long id);

    int updateForRelease(RouteWithBLOBs route);

    Long selectRecommendCount(Criteria criteria);
    List<RouteWithBLOBs> selectRecommend(Criteria criteria);
}